package com.nageoffer.shortlink.project.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.nageoffer.shortlink.project.pojo.dto.Resp.ShortLinkGroupCountRespDTO;
import com.nageoffer.shortlink.project.pojo.entity.ShortLink;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface ShortLinkMapper extends BaseMapper<ShortLink> {
    List<ShortLinkGroupCountRespDTO> listGroupShortLinkCount(@Param("gidList") List<String> gidList);

    void update(ShortLink newShortLink);
}
